
public class Cuadratica {
	double a,b,c,x1,x2;
	double d=(Math.pow(b, 2)-4*a*c);
	public Cuadratica(int a,int b,int c){
		this.a=a;
		this.b=b;
		this.c=c;
		if(d<0){
			System.out.println("No posee raices en el campo de los Reales");
		}else{
			x1=((-b+Math.sqrt(d))/2*a);
			x2=((-b-Math.sqrt(d))/2*a);
		}
	}
	public double getRaiz1(){
	return x1;
	}
	public double getRaiz2(){
		return x2;
	}
}
